package service

import (
	sqlc "bgs/db/sqlc"
	"context"
)

// GetBrandDistributeSupplySettingPtr
func (s *BrandServiceImp) GetBrandDistributeSupplySettingPtr(ctx context.Context, q *sqlc.Queries, brandID int64) (ptr *sqlc.BrandDistributeSupplySetting, err error) {
	entity, err := q.GetBrandDistributeSupplySettingByBrandID(ctx, brandID)
	if err != nil {
		return
	}
	ptr = &entity
	return
}